<?php namespace Zm345\Com\SDK\OpenLib\Copen\Enterpr\RichMember;use Zm345\Com\SDK\OpenLib\Copen\AQueryCopen;class LoginDataGet extends AQueryCopen{private$params=array();public function setIden($iden=null){$this->params['iden']=$iden;return$this;}public function check(){if(empty($this->params['iden'])||!is_scalar($this->params['iden'])){$errorMsg="无效会员名";return false;}return true;}public function getQueryStr(){$iden=$this->db->quote($this->params['iden']);return"SELECT * FROM {$this->tbPrefix}rich_mem_enterpr WHERE id=$iden OR name=$iden;";}public function exec(&$errorMsg=""){if(!$data=parent::exec($errorMsg)){trigger_error($errorMsg);exit;$errorMsg=is_bool($data)?'检索会员信息失败':'账号名或密码错误';return false;}unset($data[0]['site_owner_id'],$data[0]['rich_mem_group_name'],$data[0]['password']);return$data[0];}}?>